import request from '@/utils/request'

// 查询主机身份列表
export function listIdentity(query) {
  return request({
    url: '/os/identity/list',
    method: 'get',
    params: query
  })
}

// 查询主机身份详细
export function getIdentity(id) {
  return request({
    url: '/os/identity/' + id,
    method: 'get'
  })
}

// 新增主机身份
export function addIdentity(data) {
  return request({
    url: '/os/identity',
    method: 'post',
    data: data
  })
}

// 修改主机身份
export function updateIdentity(data) {
  return request({
    url: '/os/identity',
    method: 'put',
    data: data
  })
}

// 删除主机身份
export function delIdentity(id) {
  return request({
    url: '/os/identity/' + id,
    method: 'delete'
  })
}
